﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class GFTestLuaNGUISubFormWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(GFTest.LuaNGUISubForm);
			Utils.BeginObjectRegister(type, L, translator, 0, 8, 17, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEvent", _m_OnEvent);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnClick", _m_OnClick);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnToggle", _m_OnToggle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInputChange", _m_OnInputChange);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPress", _m_OnPress);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRelease", _m_OnRelease);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDragOver", _m_OnDragOver);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDragOut", _m_OnDragOut);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuaScriptName", _g_get_LuaScriptName);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIElements", _g_get_UIElements);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "GameObjects", _g_get_GameObjects);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Transforms", _g_get_Transforms);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIPanels", _g_get_UIPanels);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UILabels", _g_get_UILabels);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIInputs", _g_get_UIInputs);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIButtons", _g_get_UIButtons);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIToggles", _g_get_UIToggles);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UISprites", _g_get_UISprites);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UITextures", _g_get_UITextures);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UISliders", _g_get_UISliders);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIProgressBars", _g_get_UIProgressBars);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIScrollViews", _g_get_UIScrollViews);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIScrollBars", _g_get_UIScrollBars);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIGrids", _g_get_UIGrids);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UITables", _g_get_UITables);
            
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					GFTest.LuaNGUISubForm __cl_gen_ret = new GFTest.LuaNGUISubForm();
					translator.Push(L, __cl_gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception __gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to GFTest.LuaNGUISubForm constructor!");
            
        }
        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnEvent(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    object userData = translator.GetObject(L, 2, typeof(object));
                    
                    __cl_gen_to_be_invoked.OnEvent( userData );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnClick(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.GameObject gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    __cl_gen_to_be_invoked.OnClick( gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnToggle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.GameObject gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    __cl_gen_to_be_invoked.OnToggle( gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnInputChange(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.GameObject gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    __cl_gen_to_be_invoked.OnInputChange( gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnPress(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.GameObject gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    __cl_gen_to_be_invoked.OnPress( gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnRelease(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.GameObject gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    __cl_gen_to_be_invoked.OnRelease( gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnDragOver(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.GameObject gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    __cl_gen_to_be_invoked.OnDragOver( gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnDragOut(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.GameObject gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    __cl_gen_to_be_invoked.OnDragOut( gameObject );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LuaScriptName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.LuaScriptName);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIElements(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIElements);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_GameObjects(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.GameObjects);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Transforms(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.Transforms);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIPanels(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIPanels);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UILabels(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UILabels);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIInputs(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIInputs);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIButtons(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIButtons);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIToggles(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIToggles);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UISprites(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UISprites);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UITextures(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UITextures);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UISliders(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UISliders);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIProgressBars(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIProgressBars);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIScrollViews(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIScrollViews);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIScrollBars(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIScrollBars);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UIGrids(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIGrids);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UITables(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                GFTest.LuaNGUISubForm __cl_gen_to_be_invoked = (GFTest.LuaNGUISubForm)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UITables);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
        
        
        
		
		
		
		
    }
}
